package entity;

public class HotelInfo implements Product, Comparable<HotelInfo> {
    private String name;
    private String imgUrl;
    private String address;
    private String city;
    private double price;
    private String description;
    private int rating;
    private int room;

    public HotelInfo(String name, String imgUrl, String address, String city, double price, String description, int rating, int room) {
        this.name = name;
        this.imgUrl = imgUrl;
        this.address = address;
        this.city = city;
        this.price = price;
        this.description = description;
        this.rating = rating;
        this.room = room;
    }

    public HotelInfo(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public String getAddress() {
        return address;
    }

    public String getCity() {
        return city;
    }

    public double getPrice() {
        return price;
    }

    public String getDescription() {
        return description;
    }

    public int getRating() {
        return rating;
    }

    public int getRoom() {
        return room;
    }

    @Override
    public int compareTo(HotelInfo o) {
        return Double.compare(this.price, o.price);
    }
}